package com.base.cn.platform.os.entity.qa.record;

import com.base.cn.platform.os.entity.qa.question.QaQuestion;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 围观收益记录Entity
 * @author LIZHIPENG
 * @since 2018/5/2
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class QaGainAttendRecord extends QaRecordBaseEntity implements Cloneable {

    /**问题ID*/
    private BigDecimal questionId;
    /**受益人ID*/
    private BigDecimal receiptorId;
    /**支付用户ID*/
    private BigDecimal userId;
    /**分成金额*/
    private Double amount;
    /**收益用户类型  1.系统，2.讲师，3.提问学员*/
    private Integer userType;
    /**提现记录ID*/
    private BigDecimal recordId;
    //============== 扩展数据 ==============
    /**获得收益的问题*/
    private QaQuestion qaQuestion;
    /**旁听用户信息*/
    private Map<String, Object> user;
    /**受益人信息*/
    private Map<String, Object> receiptorMap;

    @Override
    public QaGainAttendRecord clone(){
        QaGainAttendRecord qaGainAttendRecord = null;
        try {
            qaGainAttendRecord = (QaGainAttendRecord)super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return qaGainAttendRecord;
    }
}
